package voyage_SIA;

import java.util.ArrayList;
import java.util.Collections;


public class Promotion {
	
	private String nomPromo;
	private int reduction;
	private ArrayList<Pays> lesPays=null;

	
	
	public Promotion(){
		super();
	}
	
	public Promotion(String nomPromo, int reduction) {
		this.nomPromo = nomPromo;
		this.reduction = reduction;
	}
	
	public String getNomPromo() {
		return nomPromo;
	}
	
	public void setNomPromo(String nomPromo){
		this.nomPromo= nomPromo;
	}
	
	public int getReduction() {
		return reduction;
	}
	public void setReduction(int reduction) {
		this.reduction = reduction;
	}
	//Encapsulation
	public ArrayList<Pays> getLesPays() {
		return (ArrayList<Pays>) Collections.unmodifiableCollection(this.lesPays);  
	}

	public void setLesPromo(ArrayList<Pays> lesPays) {
		this.lesPays = lesPays;
	}
	
	public boolean accordPromotion(int reduc)
	{
		if(reduc>70)
		{
			return false;
		}
		else return true;
		}
}
